package com.gopay.common.domain.cust;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * @CustInfoExtendItem.java
 * @author wanggang
 * @2013-11-25 下午2:54:38  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "CUST_INFO_EXTEND_ITEM")
public class CustInfoExtendItem extends BaseEntity {

    private static final long serialVersionUID = 5443936058181940451L;

    private Long sq;
    private String custId;
    private String itemKey;
    private String itemValue;

    @Id
    @SequenceGenerator(name = "CustInfoExtendItemSequence", sequenceName = "CUST_INFO_SEQ")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "CustInfoExtendItemSequence")
    @Column(name = "SQ", unique = true, nullable = false)
    public Long getSq() {
        return sq;
    }

    public void setSq(Long sq) {
        this.sq = sq;
    }

    @Column(name = "CUST_ID", nullable = false, length = 10)
    public String getCustId() {
        return custId;
    }

    public void setCustId(String custId) {
        this.custId = custId;
    }

    @Column(name = "ITEM_KEY", nullable = false, length = 10)
    public String getItemKey() {
        return itemKey;
    }

    public void setItemKey(String itemKey) {
        this.itemKey = itemKey;
    }

    @Column(name = "ITEM_VALUE", nullable = false, length = 4000)
    public String getItemValue() {
        return itemValue;
    }

    public void setItemValue(String itemValue) {
        this.itemValue = itemValue;
    }

}
